package com.pizidea.imagepicker.ui.activity;

import android.os.Bundle;
import android.app.Activity;
import android.view.View;

import com.bumptech.glide.Glide;
import com.bumptech.glide.request.RequestOptions;
import com.efounder.form.comp.multiple_images_selector.PhotoView;
import com.efounder.mobilecomps.R;



public class ShowImageActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);


        setContentView(R.layout.activity_show_image);
        String uri = getIntent().getStringExtra("uri");
        PhotoView phonview = (PhotoView) findViewById(R.id.show_image_photo_view);
        Glide.with(this)
                .load(uri)

                .thumbnail(0.5f)

                .apply(new RequestOptions().centerCrop()
                        .dontAnimate()
                        .placeholder(R.drawable.default_img)
                        .error(R.drawable.default_img))
                .into(phonview);



    }

}
